﻿using DataSync.Common;
using DataSync.Proc;
using log4net;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace DataSync
{
    class Program
    {
        private static ILog log = null;

        static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.Configure(new FileInfo(AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "log.config"));
            log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            log.InfoFormat("程序开始...");
            try
            {
                new TaskRunEngine().Run();
            }
            catch (Exception ex)
            {
                log.Error("程序运行出错", ex);
            }
            log.InfoFormat("程序结束");
        }
    }
}
